package mylist;

/**
 * Desc:业务处理类
 * @author: lisha 2018/6/14 17:14
 */
public class MyService {

    public MyOneList addServiceMethod(MyOneList list, String data){
        try {
            if(list.getSize() < 1){
                    Thread.sleep(2000);
                    list.add(data);

            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return list;

    }
}
